package com.teacher.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.teacher.common.CommonResult;
import com.teacher.pojo.entity.Department;
import com.teacher.pojo.vo.department.DepartmentAddVo;
import com.teacher.pojo.vo.department.DepartmentTreeVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zfm
 * @since 2021-06-16
 */
public interface IDepartmentService extends IService<Department> {
    /**
     * add department
     *
     * @param departmentAddVo department's info
     * @return add weather department success
     */
    CommonResult<String> addDepartment(DepartmentAddVo departmentAddVo);

    /**
     * get department by shape of tree
     *
     * @return department's info of shape of tree
     */
    CommonResult<List<DepartmentTreeVo>> getByTree();
}
